/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package abricots.entity;

import abricots.entity.collision.BallCollisionManager;
import abricots.entity.command.BasicEntityCommandManager;
import abricots.entity.drawer.BallEntityDrawer;
import abricots.entity.simulator.BallSimulator;
import abricots.entity.state.BasicEntityStateManager;
import abricots.game.GameConstants;
import abricots.game.GameEnv;

/**
 *
 * @author charly
 */
public class BallEntity extends BasicEntity {
//   private final MyLog log = new MyLog(getClass().getSimpleName(), Log.LEVEL_DEBUG);
   public BallEntity() {
      simulator = new BallSimulator(this);
      commandManager = new BasicEntityCommandManager(this);
      stateManager = new BasicEntityStateManager(this);
      drawer = new BallEntityDrawer(this);
      collisionManager = new BallCollisionManager(this);
      entityTypeId = GameConstants.ENTITY_TYPE_ID_BALL;
   }

   @Override
   public void register(GameEnv env) {
      this.env = env;
      env.getEntitiesManager().addEntity(this);
   }
}
